#ifndef __DEBUG_HPP__
#define __DEBUG_HPP__ 1

#if defined(WANT_CRT_DEBUG) && defined(_DEBUG)

#  include <cstdlib>
#  include <crtdbg.h>

//#define DEBUG_NEW new(_NORMAL_BLOCK, THIS_FILE, __LINE__)

#  define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
#  define new DEBUG_NEW

int CrtDebugReportHook(int nRptType, char *szMsg, int *retVal);

# endif

#endif /* __DEBUG_HPP__ */